import React, { Component} from 'react';

export default class DistributionUnit extends Component {
    render(){
        const {imgPath,orderName,details,price,num,stock,index,theLast} = this.props
        return(
            <div className="flex flex-pack-justify plAll">
                <div className="flex f14">
                    <div style={{width:50,height:50}}><img src={imgPath} alt=""/></div>
                    <div className="ml1">
                        <div><span className="color6">{orderName}</span ></div>
                        <div className="color9 mt">{details}</div>
                    </div>
                </div>
                <div className="color6 f12">
                    { /*{
                        index==0?
                            <div className={stock<num?"colorlv":"color6"}>可配库存：{stock}</div>
                            :
                            null
                    }
*/}
                   <div className="tr">当前数量：{num}</div>
                </div>

            </div>
        )
    }

}